import { _decorator, Component, Node, RigidBody2D } from 'cc';
import { Enemy } from './Enemy';
import { EnemyStateMachine } from './EnemyStateMachine';
const { ccclass, property } = _decorator;

@ccclass('EnemyState')
export class EnemyState {
    protected enemy: Enemy;
    protected stateMachine: EnemyStateMachine;
    protected rb: RigidBody2D;

    constructor(_enemy: Enemy, _stateMachine: EnemyStateMachine) {
        this.enemy = _enemy;
        this.stateMachine = _stateMachine;
    }
    public enter(): void {
        this.rb = this.enemy.rb;
    }

    public update(dt: number): void {

    }

    public exit(): void {

    }
}


